package com.shopping.stock01.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class StockController {
  @GetMapping("/stock/reduce/{productId}")
  public String reduce(@PathVariable("productId") String productId) {
    System.out.println("减少库存成功");
    return "库存减少成功, " + productId;
  }
}
